class Ability
  include CanCan::Ability

  def initialize(user)
    user||=Membre.new
	
	can :manage,:all if membre.role==1
	can :read,:all if membre.role==2
  end
end
